package com.easy.mapper;

import com.easy.bean.Inventory;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InventoryMapper {
    int add(@Param("inventory") Inventory inventory);
    int edit(@Param("inventory") Inventory inventory);
    int del(@Param("id") Integer id);
    Inventory one(@Param("id") Integer id);
    List<Inventory> all(@Param("inventory") Inventory inventory);

    int pageCount(@Param("inventory") Inventory inventory);

    List<Inventory> page(@Param("page") Page page, @Param("inventory") Inventory inventory);
}
